home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Arsenal Files 6
/
The Arsenal Files 6 (Arsenal Computer).ISO
/
tbbs
/
1line10.zip
/
ONELINER.PRG
< prev
next >
Wrap
Text File
|
1996-03-19
|
2KB
|
74 lines
** Oneliner Door for TBBS/TDBS 2.3/1.2 version 1.0
** Written and compiled on 3/19/1996
** Copyright (C) by John V. Baboval for Nimbus TBBS
** This software is freeware and can be distributed in it's unaltered form.
** If this software is modified in any way, the first six lines of this
** source must remain unaltered and any modifications should be noted.
SET EXCLUSIVE OFF
DO liner
USE lines.dbf
SET COLOR TO W+/B
go = 1
DO WHILE go < 9
GOTO go
@ (go+1),2 SAY "&SAYING"
IF ANON
@ (go+1),56 SAY "Anonymous"
ELSE
@ (go+1),56 SAY "&NAME"
ENDIF
go = (go+1)
ENDDO
SET COLOR TO W+/N
@ 11,1 SAY "Would you like to add a line?"
DO WHILE .T.
key = INKEY()
DO CASE
CASE CHR(key) = "y" .OR. CHR(key) = "Y"
DO add
QUIT
CASE CHR(key) = "n" .OR. CHR(key) = "N"
QUIT
ENDCASE
ENDDO
*----------------------------------------------------------------------*
PROCEDURE add
USE lines.dbf
@ 12,1 SAY "REMEMBER, the SysOp can ALWAYS see who wrote what!"
go = 2
DO WHILE go < 9
GOTO go
said = "&SAYING"
was = "&NAME"
ano = ANON
GOTO (go-1)
REPLACE SAYING WITH said
REPLACE NAME WITH was
REPLACE ANON WITH ano
go = (go+1)
ENDDO
GOTO 8
was = UNAME()
REPLACE NAME WITH was
said = SPACE(52)
@ 13,1 GET said
READ
IF EMPTY(said)
REPLACE SAYING WITH "I changed my mind..."
ELSE
REPLACE SAYING WITH said
ENDIF
@ 14,1 SAY "Do you want this to be anonymous?"
DO WHILE .T.
key = INKEY()
DO CASE
CASE CHR(key) = "y" .OR. CHR(key) = "Y"
REPLACE ANON WITH .T.
QUIT
CASE CHR(key) = "n" .OR. CHR(key) = "N"
REPLACE ANON WITH .F.
QUIT
ENDCASE
ENDDO
RETURN